//app.js
App({
  data: {
    projects: [],
    globalUrl: {
      projectUrl: "http://localhost:8080/xtyl-web"
    }
  },
  setGlobalUserInfo: function(user) {
    wx.setStorageSync("userInfo", user)
  },
  getGlobalUserInfo: function() {
    this.setData({
      userInfo: wx.getStorageSync("userInfo")
    })
  }

})